package com.huike.service;

import com.github.pagehelper.PageInfo;
import com.huike.entity.Role;

import java.util.List;

// ctrl +alt +b
public interface RoleService {
    PageInfo<Role> getPage(int currentPage, int pageSize);

    Role getRoleById(Long id);

    List<Role> getAll();

    void saveOrUpdate(Role role, Long[] permissionIds);

    void delete(Long id);
}
